﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.Configuration
{
    /// <summary>
    /// 用数据库存储相关的配置信息的实现类
    /// </summary>
    public class DBViewConfig : ViewConfigBase
    {
        /// <summary>
        /// 用数据库存储相关的配置信息的实现类
        /// </summary>
        public DBViewConfig()
        {
        }

        /// <summary>
        /// 用数据库存储相关的配置信息的实现类
        /// </summary>
        /// <param name="model">数据库对象模型</param>
        public DBViewConfig(ViewObjectDBModel model)
        {
            this._model = model;
        }

        ViewObjectDBModel _model;

        /// <summary>
        /// 获取模型
        /// </summary>
        private ViewObjectDBModel Model
        {
            get { return _model ?? ViewObjectDBModel.Default; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="viewName"></param>
        /// <returns></returns>
        public override ViewInfo GetDefaultConfig(string viewName)
        {
            //
            throw new NotImplementedException();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="viewName"></param>
        /// <param name="userName"></param>
        /// <returns></returns>
        public override ViewInfo GetUserConfig(string viewName, string userName)
        {
            throw new NotImplementedException();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="view"></param>
        public override void SaveUserConfig(ViewInfo view)
        {
            throw new NotImplementedException();
        }
    }
}
